package com.haiertvbic.tvwa.util;

import android.view.Gravity;

public class Constant {
	public static final String DEFAULT_URL = "http://test.haieross.com/sscepg/haiersscepg";
	public static final Boolean LOG_CONTROL_FLAG = false;// Log开关

	// 发送频道的消息id
	public static final int CMD_CAE_APP_GET_AUDIO_RATE = 40060;
	public static final int CMD_CAE_APP_GET_AUDIO_RATE_RE = 40061;
	// 获取频道信息的返回码
	/*
	 * 400 6 000 成功 400 6 001 成功 ， 但是数据库 没有请求个数那 么多的频道 ， 正常 情况很少出现 400 6 002
	 * 数据库不存在或 丢失 400 6 003 操作数据库发生 错误 400 6 004 未知错误，此种 情况下 UI 可以
	 */
	public static final int SUC = 4006000;
	
	//获取本地码的请求
	public static final int CMD_CAE_APP_GET_LOCAL_CODE = 40062;
	public static final int CMD_CAE_APP_GET_LOCAL_CODE_RE = 40063;
	//获取本地相应码
	public static final int LOC_SUC = 4006300;
	public static final int LOC_FAIL =4006301;              
	
	
	//换台相关，选择电视机
	public static final int CONNECT_DEVICE_OTHER = 3;
	//发送换台信息时，电视机时的请求头标识
	public static final int CMD_SENT_CHANNEL_INFO = 40044;
	//电视换台后的返回头标识
	public static final int CMD_SENT_CHANNEL_INFO_RE = 40045;
	//换台之后的返回码
	public static final int CHA_CHANNEL_SUCCESS = 4004500;	// 换台成功
	public static final int CHA_CHANNEL_FAIL = 4004501;	// 换台失败：此频道不存在;
	public static final int CHA_CHANNEL_NOCRB = 4004502;//CRB未插入，或者CRB故障，提示用户插入或者重新插拔CRB
	public static final int CHA_CHANNEL_NOREMOUTESETTING = 4004503;//未设置CRB
	//定时器默认30
	public static final int DEFAULT_TIME = 30;
	//定时器第二次60
	public static final int SECOND_TIME = 60;
	//要读取多少个频道,初始值为5；这个在请求频道时也要用到
	public static final int CHANNEL_NUMBER = 5;
	
	/*
	 * -------------------------------------------------------------------------
	 * 以下值为李彬定义
	 */
	
	//Toast位置值
	public static final int TOAST_GRAVITY = Gravity.RIGHT|Gravity.BOTTOM;
//	public static final int TOAST_X_OFFSET = 15;
	public static final int TOAST_Y_OFFSET = 50;
	


}
